# include ../../common/mkCommon/compile.mk
CXX=x86_64-linux-gnu-g++
# STRIP=x86_64-linux-gnu-strip
# CXX=arm-linux-g++
CFLAGS   = -Wall -I./
SRCS = $(wildcard *.cpp)
TARGET = test
$(info srcs: $(SRCS))
TAGS = $(patsubst %.cpp,%,$(SRCS))
$(info objs: $(OBJS))


all:$(TAGS)
	# $(CXX) -o $(TARGET) $(OBJS) $(CFLAGS) $(COMPILE_USR_FLAGS) -ljsoncpp -lz -lmosquitto -lmosquittopp -lpthread -lcrypto -lssl -lmongoose

$(TAGS):%:%.cpp
	$(CXX) -o $@ $^ $(COMMON_OPT_FLAG) $(CFLAGS) $(COMPILE_USR_FLAGS) -pthread -O3
	# $(STRIP) $@

clean:
	rm -f *.o $(TARGET) $(OBJS) $(TAGS)

cleandir:clean
	rm -rf *.db *.log *.properties *.txt
